//
//  HotShopTableViewCell.swift
//  zhihuifan
//
//  Created by apple on 2017/9/6.
//  Copyright © 2017年 youyou. All rights reserved.
//

import UIKit

class HotShopTableViewCell: UITableViewCell {
    
    @IBOutlet weak var judge3: UILabel!
    @IBOutlet weak var judge2: UILabel!
    @IBOutlet weak var judge1: UILabel!
    
    @IBOutlet weak var shopNameLabel: UILabel!
    var hotshopModel:[HotShopModel]?{
     didSet{
        guard let hotshopModels = hotshopModel else {
            return
        }
        for i in 0 ..< hotshopModels.count {
            let model = hotshopModels[i]
            if i >= 5 {
                break
            }
            if i == 0 {
                shopNameLabel.text = model.shopname
            }else{
               let hotView = RecommendHotVIew()
            }
        }
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        judge1.hbj_getCircleLabel(cornerRadius: 12)
        judge2.hbj_getCircleLabel(cornerRadius: 12)
        judge3.hbj_getCircleLabel(cornerRadius: 12)
    }
    class func loadNib() -> HotShopTableViewCell{
        let nib = UINib(nibName: "HotShopTableViewCell", bundle: nil)
        guard let cell = nib.instantiate(withOwner: nil, options: [:])[0] as? HotShopTableViewCell else{
            return HotShopTableViewCell()
        }
        return cell
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
